package com.hr.controller;

import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class TestController {
    //弄懂调用接口 可删除
    @RequiresPermissions("oa:system:manager")
    @GetMapping("/test1")
    public ResponseEntity<String> test1(){
        return ResponseEntity.ok("*** 你已经拥有系统管理的接口调用权限");
    }

    @RequiresPermissions("oa:user:manager")
    @GetMapping("/test2")
    public ResponseEntity<String> test2(){
        return ResponseEntity.ok("*** 你已经拥有用户管理的接口调用权限");
    }

}
